
class Student {
    private String name;
    private int age;
    private static String classRoom = "3203直播间";

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void show() {
        System.out.println(name+" "+age);
    }

}

public class Test2 {


    public static void main(String[] args) {
        Student student1 = new Student("ZY",20);
        Student student2 = new Student("ZS",30);
        Student student3 = new Student("LS",40);
        student1.show();
        System.out.println(student1);
    }
}
